import productdirection from "./productdirection"
import { get, post } from "../http"
import api from "../api"
import { AxiosPromise } from "axios"
import productdirectionModel from "../productdirection"

class productdirections implements productdirection {
    query(params?: any): AxiosPromise<any> {
        return get(api.querydirection, params)
    }
    add(data: productdirectionModel): AxiosPromise<any> {
        return post(api.adddirection, data)
    }
}
export default new productdirections()